package net.golfklubi.sive;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.link.Link;

public class MasterPage extends WebPage {
    public MasterPage() {
        add(new SignoutLink("signOut"));
    }
}

class SignoutLink extends Link {

    public SignoutLink(final String id) {
        super(id);
    }

    @Override
    public void onClick() {
        getSession().invalidate();
        setResponsePage(SiveLoginPage.class);

    }

}
